package com.liu.susu.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

@Data
@Accessors(chain = true)  //链式写法
public class Cat {

    private Integer catNum;
    private String catName;
    private int catAge;

    public static void main(String[] args) {
        Cat cat = new Cat();
        cat.setCatNum(1001).setCatName("贝塔").setCatAge(3);

        System.out.println(cat);
    }

}
